package com.chaoyer.cynet.common.constant;

public class HttpConnectionConstants {

    /**
     * client连接池最大连接数
     */
    public final static int CLIENT_POOL_MAX_SIZE = 200;

    /***
     * 单个站点最大连接数
     */
    public final static int MAX_PER_ROUTE = 20;

    /**
     * socket超时时间，即数据下载时中断时间间隔
     */
    public final static int SOCKET_TIMEOUT = 30000;
    
    public final static int SOAP_SOCKET_TIMEOUT = 300000;

    /**
     * 连接超时时间，即连接站点时的超时时间
     */
    public final static int CONNECT_TIMEOUT = 30000;

    /**
     * 设置连接默认编码
     */
    public final static String DEFAULT_ENCODE = "utf-8";
    /**
     * 是否开启 tcpNoDelay功能，开启的话优化网络带宽利用率，关闭响应更及时
     */
    public final static boolean IS_TCP_NO_DELAY = true;

    public static final String CONTENT_TYPE_TEXT_JSON = "text/json";
    
    public static final String CONTENT_TYPE_TEXT_XML = "text/xml";

    public static final String APPLICATION_JSON = "application/json";
    
    public static final String APPLICATION_SOAP = "application/soap+xml";
    
    public static final String HEAD_SOAP_ACTION = "SOAPAction";

}
